package avicit.bdp.dms.prm.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 前端静态资源访问 TODO 暂时不用
 *
 **/
//@Configuration("web1")
public class WebConfig implements WebMvcConfigurer {
    @Value("${web.location}")
    private String webLocation;
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**").addResourceLocations(webLocation);
    }
}
